From: Jasper St. Pierre Date: Wed, 27 Apr 2011 13:51:53 +0000 (-0400) Subject: history: Fix navigation when entering a repeat X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8296 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bafd9c777ade647b2e31f3265ed8970f39f1843c;p=gnome-shell.git history: Fix navigation when entering a repeat If the user typed "a", hit up, and pressed enter again, we wouldn't re-set the history pointer to the end, so the broken navigation would instead go to the entry before that. https://bugzilla.gnome.org/show_bug.cgi?id=648765 --- diff --git a/js/misc/history.js b/js/misc/history.js index 24d1b514d..fa655cfa0 100644 --- a/js/misc/history.js +++ b/js/misc/history.js @@ -77,9 +77,9 @@ HistoryManager.prototype = { this._history[this._history.length - 1] != input) { this._history.push(input); - this._historyIndex = this._history.length; this._save(); - } + } + this._historyIndex = this._history.length; }, _onEntryKeyPress: function(entry, event) {